package com.bluedot.bank.action;

import com.bluedot.bank.dao.user.User;
import com.bluedot.bank.dao.user.UserDao;
import com.bluedot.bank.dao.user.UserDaoImpl;
import com.opensymphony.xwork2.ActionSupport;

public class DelUserAction extends ActionSupport {
	private long id;
	@Override
	public String execute() throws Exception {
		UserDao userDao=new UserDaoImpl();
		User user=userDao.findById(id);
		userDao.delete(user);
		return SUCCESS;
	}
	/**
	 * @return the id
	 */
	public long getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(long id) {
		this.id = id;
	}

}
